#define tabHead(tab,isHidden)
<header class="b_bor flexbox">
        <div id="return" class="headdiv"><i class="iconfont">&#xe600;</i></div>
        <h1 id="change">#(tab)</h1>
        <div id="navbtn" class="navbtn headdiv" data-userprogress="#(user.progress??'')">
            <i class="iconfont">&#xe606;</i>
        </div>
        #if(isHidden)
        #else
        <!-- 5通过 3有反馈 -->
        <nav id="nav" data-orderApply="#(stepInfo.orderApply??'')" data-msg="#(stepInfo.desc??'')">
            <i class="iconfont sanjiao">&#xe611;</i>
            <ul>
                <li data-state="#(stepInfo.credPho??'')"><a href="/makeprice/uploadCred/2">原件照片</a></li>
                <li data-state="#(stepInfo.carPho??'')"><a href="/makeprice/uploadCred/3">车辆照片</a></li>
                <li data-state="#(stepInfo.bargainReview??'')"><a href="/bargain">合同申请</a></li>
                <li data-state="#(stepInfo.bargainPho??'')"><a href="/bargainUpload">合同上传</a></li>
                <!-- <li><a href="#"><i class="iconfont">&#xe618;</i>资料补充</a></li> -->
            </ul>
        </nav>
        #end
    </header>
<div id="zhezhao"></div>
#end

#define userHead()
<header id="user">
  	<a href="javascript:;" id="return" class="return"><i class="iconfont">&#xe600;</i></a> 		
	<a href="/userCenter/userInfo"><img src="/assets/img/defaultHead.jpg" class="headimg" /></a>
	<p>业务经理</p>
	<h2>#(user.userName)</h2>
	#if(user.power == 1)
	<p>邀请码:#(user.inviteCode)</p>
	#end
</header>
#end

#define loginHead(tab,a)
<header class="b_bor flexbox">
	<div id="return" class="headdiv"><i class="iconfont">&#xe600;</i></div>
	<h1>#(tab)</h1>
	<div class="loginpage headdiv">#(a)</div>
</header> 
#end

#define footer(idx)
<!-- footer start -->
<footer class="footer t_bor" id="footer">
	<div class="content area flexbox">
		<div class="flex">
			<a href="/index"><i class="iconfont">&#xe622;</i>
				<p>首页</p>
			</a>
		</div>
		<div class="flex">
			<a href="/product"><i class="iconfont">&#xe601;</i>
				<p>产品</p>
			</a>
		</div>
		<div class="flex">
			<a href="/userCenter"><i class="iconfont">&#xe63c;</i>
				<p>我</p>
			</a>
		</div>
	</div>
</footer>
<script>
	$("#footer a").each(function(idx,el){
		if (idx+"" == #(idx)) {
			$(el).addClass("active")
		}
	})
</script>
<!-- end footer -->
#end

#define formInputModel(xml,modelName)
<div class="input-group inputSpr" id="#(xml.zhExpl)">
	<div class="input-group-addon inputlabel" id="title">#(xml.zhExpl):</div>
	<input id="#(xml.paramterName)" name="#(modelName).#(xml.paramterName)" placeholder="" type="text"
		class="inputcls" value="#(xml.value??)">
	#if(xml.defaultState=="3"&&model.get(xml.paramterName)??==null)
		<script  type="text/javascript">$("##(xml.paramterName)")[0].parentElement.style.display="none"</script>
	#end
	#if(xml.unit!=null&&xml.unit!="")
		<div class="input-group-addon inputlabel">#(xml.unit)</div>
	#elseif((xml.value==null||xml.state==0)&&xml.selectValue!=null&&xml.selectValue!="")
		<div class="input-group-btn" style="width:100%;height:14px;" id="select#(xml.paramterName)">
		<select class="form-control" onchange="$('##(xml.paramterName)').val($(this).val()) #(xml.selectTrigger)">
			<option>请选择</option>
			#for(val : xml.selectValue.split(","))
  			<option value="#(val)">#(val)</option>
  			#end
		</select>
		</div>
	#end
	#if(xml.iputType!=null&&xml.iputType=="date")
	<script src="/assets/laydate/laydate.js"></script>
	<script>
	;!function(){
	laydate({
  		 elem: '##(xml.paramterName)'
	})
	}();
	</script>
	#end
</div>
#if(errs.get(xml.paramterName+'Msg')??!=null)
<p class="text-danger">#(errs.get(xml.paramterName+'Msg'))</p>
#end
#end 

#define formInputFile(pname,mdl,isSon)
#if(mdl.value!=null)
	#if(!isSon)
		#if(mdl.state=="0")
			<p class="text-danger">未上传</p>
			#set(warn=true)
		#elseif(mdl.value!=null&&mdl.state!=null&&mdl.state.length()>1)
			<p class="text-danger">#(mdl.get(pname+"Sta")??)</p>
			#set(warn=true)
		#end
		<img src="#(mdl.value??)" class="thumbnail" style="width:60%;height:auto;margin:auto;">
	#else
		#setLocal(arr=pname.split("_"))
		#if(mdl.state!=null&&mdl.state.size()>0)
		#if(mdl.state[java.lang.Integer::parseInt(arr[1])]=="0")
			<p class="text-danger">未上传</p>
			#set(warn=true)
			#set(sonWarn=true)
		#elseif(mdl.state[java.lang.Integer::parseInt(arr[1])].length()>1)
			<p class="text-danger">#(mdl.state[java.lang.Integer::parseInt(arr[1])])</p>
			#set(warn=true)
			#set(sonWarn=true)
		#end
		#if(mdl.value[arr[1]]!=null)
			<img src="#(mdl.value[arr[1]])" class="thumbnail" style="width:60%;height:auto;margin:auto;">
		#end
		#end
	#end
#end
<div class="" style="display: table; width: auto; margin-left: auto; margin-right: auto;" id="updown#(pname)">
	<link rel="stylesheet" href="/assets/css/fileinput.css">
	<script type="text/javascript" src="/assets/js/fileinput.js"></script>
	<input type="file" name="#(pname)" class="file" style="width: 100px;">
	<button type="button" class="btn btn-primary" style="width: 100px;">模板</button>
</div>
	#setLocal(boo = false)
	#if(!isSon)
		#if(mdl.state!=null&&mdl.state.size()==1&&java.lang.Integer::parseInt(mdl.state) >= 1)
			#set(boo = true)
		#end
	#else
		#setLocal(arr=pname.split("_"))
		#if(mdl.state!=null&&mdl.state[java.lang.Integer::parseInt(arr[1])]!=null)
		#setLocal(state = mdl.state[java.lang.Integer::parseInt(arr[1])])
		#if(state.length()==1&&java.lang.Integer::parseInt(state) >= 1)
			#set(boo = true)
		#end
		#end
	#end
	#if(boo)
		<script type="text/javascript">
			$("#updown#(pname) input")[0].disabled=true
		</script>
	#end
#end

#define loadContainer()
<div id="load-container" class="load-container load7">
	<div class="loader"></div>
</div>
#end